/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.app.persistence;

import java.awt.image.BufferedImage;
import java.util.Date;
import java.util.Objects;

/**
 *
 * @author paul
 */
public class Film {
    private String nom2;
private String nom;
private String genre;
private String datedesortie;
private int vote;
private String synopsis;
private BufferedImage affiche;

   



    public Film(String nom2, String nom, String genre, String datedesortie, String synopsis) {
        this.nom2 = nom2;
        this.nom = nom;
        this.genre = genre;
        this.datedesortie = datedesortie;
        this.synopsis = synopsis;
    }

    public Film(String nom, String genre, String datedesortie, int vote, String synopsis) {
        this.nom = nom;
        this.genre = genre;
        this.datedesortie = datedesortie;
        this.vote = vote;
        this.synopsis = synopsis;
    }

    public Film(String nom, String genre, String datedesortie, String synopsis) {
        this.nom = nom;
        this.genre = genre;
        this.datedesortie = datedesortie;
        this.synopsis = synopsis;
    }

    public Film(String nom) {
        this.nom = nom;
    }

  

  
    
    

    public String getSynopsis() {
        return synopsis;
    }

    public void setSynopsis(String synopsis) {
        this.synopsis = synopsis;
    }

    public Film() {
    }

    public String getDatedesortie() {
        return datedesortie;
    }

    public BufferedImage getAffiche() {
        return affiche;
    }

    public void setAffiche(BufferedImage affiche) {
        this.affiche = affiche;
    }

    public void setDatedesortie(String datedesortie) {
        this.datedesortie = datedesortie;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public int getVote() {
        return vote;
    }

    public String getNom2() {
        return nom2;
    }

    public void setNom2(String nom2) {
        this.nom2 = nom2;
    }

    public void setVote(int vote) {
        this.vote = vote;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Film other = (Film) obj;
        if (!Objects.equals(this.nom, other.nom)) {
            return false;
        }
        if (!Objects.equals(this.genre, other.genre)) {
            return false;
        }
        if (!Objects.equals(this.datedesortie, other.datedesortie)) {
            return false;
        }
        if (this.vote != other.vote) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + Objects.hashCode(this.nom);
        hash = 37 * hash + Objects.hashCode(this.genre);
        hash = 37 * hash + Objects.hashCode(this.datedesortie);
        hash = 37 * hash + this.vote;
        return hash;
    }

    @Override
    public String toString() {
        return "Film{" + "nom=" + nom + "genre=" + genre + "datedesortie=" + datedesortie + "vote=" + vote + synopsis+ "synopsis=" + '}';
    }

}
